public class Test {  
    public static void main(String[] args) {  
        // Step 1: Create a CPU object and set its speed to 2200  
        CPU cpu = new CPU();  
        cpu.setSpeed(2200);  
  
        // Step 2: Create a HardDisk object and set its amount to 200  
        HardDisk disk = new HardDisk();  
        disk.setAmount(200);  
  
        // Step 3: Create a PC object  
        PC pc = new PC();  
  
        // Step 4: Set CPU for PC  
        pc.setCPU(cpu);  
  
        // Step 5: Set HardDisk for PC  
        pc.setHardDisk(disk);  
  
        // Step 6: Display the CPU speed and HardDisk amount  
        pc.show();  
    }  
}